// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import vueEcharts from 'vue-echarts'
// 手动引入 ECharts 各模块来减小打包体积
import 'echarts/lib/chart/bar'
import 'echarts/lib/component/tooltip'
import 'echarts-gl'
import VueAxios from 'vue-axios'
import axios from 'axios'
import qs from 'qs'

Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.prototype.$qs = qs
Vue.use(vueEcharts)
Vue.use(VueAxios, axios)

axios.defaults.baseURL = 'http://localhost:8080'
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
